package com.easipass.framework.eirframeworkjdbc;

import com.easipass.framework.eirframeworkjdbc.model.MessageLog;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MessageLogRepository extends MongoRepository<MessageLog, String> {

    @Query
    List<MessageLog> findByName(String name);

    @Query
    List<MessageLog> findByServiceName(String serviceName);

}
